import React from 'react'
import PropTypes from 'prop-types'
import Avatar from '@material-ui/core/Avatar';

/**
 * 图片头像
 */
class ImageAvatar extends React.Component {
    render() {
        const {alt, src} = this.props
        return (
            <Avatar alt={alt} src={src}/>
        )
    }
}
ImageAvatar.propTypes = {
    alt: PropTypes.string,
    src: PropTypes.string,
}

export default ImageAvatar